import request from '@/utils/request'

// 商品详情区获取数据
export const findGoods = (id) => {
    return request('/goods','get',{id})
}
// 商品详情轮播图信息
export const findRelevant = ({id,limit=16}) => {
    return request('/goods/relevant','get',{id,limit})
}
// 商品详情热榜数据
export const findGoodsHot = ({id,type,limit=3})=>{
    return request('/goods/hot','get',{id,type,limit})
}
// 获取商品评价信息
export const findCommentData = (id) => {
    return request(`https://mock.boxuegu.com/mock/1175/goods/${id}/evaluate`,'get')
}
// 获取评价列表数据
export const findCommentList = (id,params) => {
    return request(`https://mock.boxuegu.com/mock/1175/goods/${id}/evaluate/page`,'get',{id,params})
}